/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package company.globalEvents;

import entities.CompanyOrder;
import globalEvents.GlobalevHttpSessionController;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;

/**
 *
 * @author Alvaro
 */
@RequestScoped
public class CompanyEventDispatcher {
  @Inject
  private GlobalevHttpSessionController _httpSessionController;

  public void firePaidCompanyProductEvent(final CompanyOrder companyOrder) {
    _httpSessionController.fireEvent(new PaidCompanyProductEvent(companyOrder));
  }
}
